package com.lin.utils.treenode;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/8/2.
 */
@Data
public class RegionTreeNode {

    private String id;

    private String text;

    private String name_en;

    private String parentId;

    private List<RegionTreeNode> children;

    public void addChild(RegionTreeNode node){
        if(this.children==null){
            children=new ArrayList<RegionTreeNode>();
            children.add(node);
        }else{
            children.add(node);
        }
    }
}
